#ifndef __document_h__
#define __document_h__

/* Forward Declarations */

struct ENUMDESC;

/* header files for imported files */
#include "types.h"

/* header files for imported files */
#include "body.h"

/* header files for imported files */
#include "selecobj.h"

/* header files for imported files */
#include "collect.h"

/* header files for imported files */
#include "history.h"

/* header files for imported files */
#include "window.h"

/* header files for imported files */
#include "sheetcol.h"

/* header files for imported files */
#include "sheet.h"

/* header files for imported files */
#include "rendstyl.h"

/* header files for imported files */
#include "dom.h"

/* header files for imported files */
#include "comment.h"

#ifndef __IHTMLFramesCollection2_FWD_DEFINED__
#define __IHTMLFramesCollection2_FWD_DEFINED__
typedef interface IHTMLFramesCollection2 IHTMLFramesCollection2;
#endif     /* __IHTMLFramesCollection2_FWD_DEFINED__ */

#ifndef __IHTMLDocument_FWD_DEFINED__
#define __IHTMLDocument_FWD_DEFINED__
typedef interface IHTMLDocument IHTMLDocument;
#endif     /* __IHTMLDocument_FWD_DEFINED__ */

#ifndef __IHTMLDocument2_FWD_DEFINED__
#define __IHTMLDocument2_FWD_DEFINED__
typedef interface IHTMLDocument2 IHTMLDocument2;
#endif     /* __IHTMLDocument2_FWD_DEFINED__ */

#ifndef __IHTMLDocument3_FWD_DEFINED__
#define __IHTMLDocument3_FWD_DEFINED__
typedef interface IHTMLDocument3 IHTMLDocument3;
#endif     /* __IHTMLDocument3_FWD_DEFINED__ */

#ifndef __IHTMLDocument4_FWD_DEFINED__
#define __IHTMLDocument4_FWD_DEFINED__
typedef interface IHTMLDocument4 IHTMLDocument4;
#endif     /* __IHTMLDocument4_FWD_DEFINED__ */

#ifndef __IHTMLDocument5_FWD_DEFINED__
#define __IHTMLDocument5_FWD_DEFINED__
typedef interface IHTMLDocument5 IHTMLDocument5;
#endif     /* __IHTMLDocument5_FWD_DEFINED__ */
typedef enum _htmlCompatMode
{
    htmlCompatModeBackCompat = 0,
    htmlCompatModeCSS1Compat = 1,
    htmlCompatMode_Max = 2147483647L
} htmlCompatMode;


EXTERN_C const ENUMDESC s_enumdeschtmlCompatMode;


#ifndef __IHTMLDocument_INTERFACE_DEFINED__

#define __IHTMLDocument_INTERFACE_DEFINED__

EXTERN_C const IID IID_IHTMLDocument;


MIDL_INTERFACE("626FC520-A41E-11cf-A731-00A0C9082637")
IHTMLDocument : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE get_Script(
         /* [out] */ IDispatch* * p) = 0;

};

#endif     /* __IHTMLDocument_INTERFACE_DEFINED__ */


#ifndef __IHTMLDocument2_INTERFACE_DEFINED__

#define __IHTMLDocument2_INTERFACE_DEFINED__

EXTERN_C const IID IID_IHTMLDocument2;


MIDL_INTERFACE("332c4425-26cb-11d0-b483-00c04fd90119")
IHTMLDocument2 : public IHTMLDocument
{
public:
    virtual HRESULT STDMETHODCALLTYPE get_all(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_body(
         /* [out] */ IHTMLElement* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_activeElement(
         /* [out] */ IHTMLElement* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_images(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_applets(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_links(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_forms(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_anchors(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_title(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_title(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_scripts(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_designMode(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_designMode(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_selection(
         /* [out] */ IHTMLSelectionObject* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_readyState(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_frames(
         /* [out] */ IHTMLFramesCollection2* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_embeds(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_plugins(
         /* [out] */ IHTMLElementCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_alinkColor(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_alinkColor(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_bgColor(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_bgColor(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_fgColor(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_fgColor(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_linkColor(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_linkColor(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_vlinkColor(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_vlinkColor(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_referrer(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_location(
         /* [out] */ IHTMLLocation* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_lastModified(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_URL(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_URL(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_domain(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_domain(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_cookie(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_cookie(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_expando(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_expando(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_charset(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_charset(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_defaultCharset(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_defaultCharset(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_mimeType(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_fileSize(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_fileCreatedDate(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_fileModifiedDate(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_fileUpdatedDate(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_security(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_protocol(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_nameProp(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE write(
            /* [in] */ SAFEARRAY* psarray) = 0;

    virtual HRESULT STDMETHODCALLTYPE writeln(
            /* [in] */ SAFEARRAY* psarray) = 0;

    virtual HRESULT STDMETHODCALLTYPE open(
            /* [in] */ BSTR url,/* [in] */ VARIANT name,/* [in] */ VARIANT features,/* [in] */ VARIANT replace,/* [out] */ IDispatch** pomWindowResult) = 0;

    virtual HRESULT STDMETHODCALLTYPE close(
            ) = 0;

    virtual HRESULT STDMETHODCALLTYPE clear(
            ) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandSupported(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandEnabled(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandState(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandIndeterm(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandText(
            /* [in] */ BSTR cmdID,/* [out] */ BSTR* pcmdText) = 0;

    virtual HRESULT STDMETHODCALLTYPE queryCommandValue(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT* pcmdValue) = 0;

    virtual HRESULT STDMETHODCALLTYPE execCommand(
            /* [in] */ BSTR cmdID,/* [in] */ VARIANT_BOOL showUI,/* [in] */ VARIANT value,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE execCommandShowHelp(
            /* [in] */ BSTR cmdID,/* [out] */ VARIANT_BOOL* pfRet) = 0;

    virtual HRESULT STDMETHODCALLTYPE createElement(
            /* [in] */ BSTR eTag,/* [out] */ IHTMLElement** newElem) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onhelp(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onhelp(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onclick(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onclick(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondblclick(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondblclick(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onkeyup(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onkeyup(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onkeydown(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onkeydown(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onkeypress(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onkeypress(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onmouseup(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmouseup(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onmousedown(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmousedown(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onmousemove(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmousemove(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onmouseout(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmouseout(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onmouseover(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmouseover(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onreadystatechange(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onreadystatechange(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onafterupdate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onafterupdate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onrowexit(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onrowexit(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onrowenter(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onrowenter(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondragstart(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondragstart(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onselectstart(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onselectstart(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE elementFromPoint(
            /* [in] */ long x,/* [in] */ long y,/* [out] */ IHTMLElement** elementHit) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_parentWindow(
         /* [out] */ IHTMLWindow2* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_styleSheets(
         /* [out] */ IHTMLStyleSheetsCollection* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onbeforeupdate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onbeforeupdate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onerrorupdate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onerrorupdate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE toString(
            /* [out] */ BSTR* String) = 0;

    virtual HRESULT STDMETHODCALLTYPE createStyleSheet(
            /* [in] */ BSTR bstrHref,/* [in] */ long lIndex,/* [out] */ IHTMLStyleSheet** ppnewStyleSheet) = 0;

};

#endif     /* __IHTMLDocument2_INTERFACE_DEFINED__ */


#ifndef __IHTMLDocument3_INTERFACE_DEFINED__

#define __IHTMLDocument3_INTERFACE_DEFINED__

EXTERN_C const IID IID_IHTMLDocument3;


MIDL_INTERFACE("3050f485-98b5-11cf-bb82-00aa00bdce0b")
IHTMLDocument3 : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE releaseCapture(
            ) = 0;

    virtual HRESULT STDMETHODCALLTYPE recalc(
            /* [in] */ VARIANT_BOOL fForce) = 0;

    virtual HRESULT STDMETHODCALLTYPE createTextNode(
            /* [in] */ BSTR text,/* [out] */ IHTMLDOMNode** newTextNode) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_documentElement(
         /* [out] */ IHTMLElement* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_uniqueID(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE attachEvent(
            /* [in] */ BSTR event,/* [in] */ IDispatch* pDisp,/* [out] */ VARIANT_BOOL* pfResult) = 0;

    virtual HRESULT STDMETHODCALLTYPE detachEvent(
            /* [in] */ BSTR event,/* [in] */ IDispatch* pDisp) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onrowsdelete(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onrowsdelete(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onrowsinserted(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onrowsinserted(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_oncellchange(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_oncellchange(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondatasetchanged(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondatasetchanged(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondataavailable(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondataavailable(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondatasetcomplete(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondatasetcomplete(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onpropertychange(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onpropertychange(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_dir(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_dir(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_oncontextmenu(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_oncontextmenu(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onstop(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onstop(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE createDocumentFragment(
            /* [out] */ IHTMLDocument2** pNewDoc) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_parentDocument(
         /* [out] */ IHTMLDocument2* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_enableDownload(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_enableDownload(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_baseUrl(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_baseUrl(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_childNodes(
         /* [out] */ IDispatch* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_inheritStyleSheets(
         /* [in] */ VARIANT_BOOL v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_inheritStyleSheets(
         /* [out] */ VARIANT_BOOL * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onbeforeeditfocus(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onbeforeeditfocus(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE getElementsByName(
            /* [in] */ BSTR v,/* [out] */ IHTMLElementCollection** pelColl) = 0;

    virtual HRESULT STDMETHODCALLTYPE getElementById(
            /* [in] */ BSTR v,/* [out] */ IHTMLElement** pel) = 0;

    virtual HRESULT STDMETHODCALLTYPE getElementsByTagName(
            /* [in] */ BSTR v,/* [out] */ IHTMLElementCollection** pelColl) = 0;

};

#endif     /* __IHTMLDocument3_INTERFACE_DEFINED__ */


#ifndef __IHTMLDocument4_INTERFACE_DEFINED__

#define __IHTMLDocument4_INTERFACE_DEFINED__

EXTERN_C const IID IID_IHTMLDocument4;


MIDL_INTERFACE("3050f69a-98b5-11cf-bb82-00aa00bdce0b")
IHTMLDocument4 : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE focus(
            ) = 0;

    virtual HRESULT STDMETHODCALLTYPE hasFocus(
            /* [out] */ VARIANT_BOOL* pfFocus) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onselectionchange(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onselectionchange(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_namespaces(
         /* [out] */ IDispatch* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE createDocumentFromUrl(
            /* [in] */ BSTR bstrUrl,/* [in] */ BSTR bstrOptions,/* [out] */ IHTMLDocument2** newDoc) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_media(
         /* [in] */ BSTR v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_media(
         /* [out] */ BSTR * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE createEventObject(
            /* [in] */ VARIANT* pvarEventObject,/* [out] */ IHTMLEventObj** ppEventObj) = 0;

    virtual HRESULT STDMETHODCALLTYPE fireEvent(
            /* [in] */ BSTR bstrEventName,/* [in] */ VARIANT* pvarEventObject,/* [out] */ VARIANT_BOOL* pfCancelled) = 0;

    virtual HRESULT STDMETHODCALLTYPE createRenderStyle(
            /* [in] */ BSTR v,/* [out] */ IHTMLRenderStyle** ppIHTMLRenderStyle) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_oncontrolselect(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_oncontrolselect(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_URLUnencoded(
         /* [out] */ BSTR * p) = 0;

};

#endif     /* __IHTMLDocument4_INTERFACE_DEFINED__ */


#ifndef __IHTMLDocument5_INTERFACE_DEFINED__

#define __IHTMLDocument5_INTERFACE_DEFINED__

EXTERN_C const IID IID_IHTMLDocument5;


MIDL_INTERFACE("3050f80c-98b5-11cf-bb82-00aa00bdce0b")
IHTMLDocument5 : public IDispatch
{
public:
    virtual HRESULT STDMETHODCALLTYPE put_onmousewheel(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onmousewheel(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_doctype(
         /* [out] */ IHTMLDOMNode* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_implementation(
         /* [out] */ IHTMLDOMImplementation* * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE createAttribute(
            /* [in] */ BSTR bstrattrName,/* [out] */ IHTMLDOMAttribute** ppattribute) = 0;

    virtual HRESULT STDMETHODCALLTYPE createComment(
            /* [in] */ BSTR bstrdata,/* [out] */ IHTMLDOMNode** ppRetNode) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onfocusin(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onfocusin(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onfocusout(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onfocusout(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onactivate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onactivate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_ondeactivate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_ondeactivate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onbeforeactivate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onbeforeactivate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE put_onbeforedeactivate(
         /* [in] */ VARIANT v) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_onbeforedeactivate(
         /* [out] */ VARIANT * p) = 0;

    virtual HRESULT STDMETHODCALLTYPE get_compatMode(
         /* [out] */ BSTR * p) = 0;

};

#endif     /* __IHTMLDocument5_INTERFACE_DEFINED__ */



EXTERN_C const GUID GUID_HTMLDocument;



EXTERN_C const GUID DIID_DispHTMLDocument;


#ifndef _CDocument_PROPDESCS_
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentScript;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentall;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentbody;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentactiveElement;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentanchors;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentapplets;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentlinks;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentforms;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentimages;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumenttitle;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentscripts;
EXTERN_C const PROPERTYDESC_NUMPROP s_propdescCDocumentdesignMode;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentembeds;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentselection;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentreadyState;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentframes;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentplugins;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentbgColor;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentfgColor;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentalinkColor;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentvlinkColor;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentlinkColor;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentURL;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentlocation;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentreferrer;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentlastModified;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentdomain;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentcookie;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentexpando;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentcharset;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentdefaultCharset;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentparentWindow;
EXTERN_C const PROPERTYDESC_NUMPROP s_propdescCDocumentdir;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonhelp;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonclick;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondblclick;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonkeyup;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonkeydown;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonkeypress;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmouseup;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmousedown;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmousemove;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmouseout;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmouseover;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonreadystatechange;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonafterupdate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonbeforeupdate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondatasetchanged;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondataavailable;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondatasetcomplete;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonrowexit;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonrowenter;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonrowsdelete;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonrowsinserted;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentoncellchange;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondragstart;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonselectstart;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonerrorupdate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonpropertychange;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentoncontextmenu;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonstop;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonbeforeeditfocus;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonselectionchange;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentoncontrolselect;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonmousewheel;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonfocusin;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonfocusout;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonactivate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentondeactivate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonbeforeactivate;
EXTERN_C const PROPERTYDESC_BASIC s_propdescCDocumentonbeforedeactivate;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentmimeType;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentfileSize;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentfileCreatedDate;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentfileModifiedDate;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentfileUpdatedDate;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentsecurity;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentprotocol;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentnameProp;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentwrite;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentwriteln;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentopen;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentclose;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentclear;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandSupported;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandEnabled;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandState;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandIndeterm;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandText;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentqueryCommandValue;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentexecCommand;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentexecCommandShowHelp;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateElement;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentelementFromPoint;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumenttoString;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentstyleSheets;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateStyleSheet;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentreleaseCapture;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentrecalc;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateTextNode;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentdocumentElement;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentuniqueID;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentattachEvent;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentdetachEvent;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateDocumentFragment;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentparentDocument;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentenableDownload;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentbaseUrl;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentchildNodes2;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentinheritStyleSheets;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentgetElementsByName;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentgetElementsByTagName;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentgetElementById;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentfocus;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumenthasFocus;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentnamespaces;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateDocumentFromUrl;
EXTERN_C const PROPERTYDESC_NUMPROP_ABSTRACT s_propdescCDocumentmedia;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateEventObject;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentfireEvent;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateRenderStyle;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentURLUnencoded;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentdoctype;
EXTERN_C const PROPERTYDESC_BASIC_ABSTRACT s_propdescCDocumentimplementation;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateAttribute;
EXTERN_C const PROPERTYDESC_METHOD s_methdescCDocumentcreateComment;
EXTERN_C const PROPERTYDESC_NUMPROP_ABSTRACT s_propdescCDocumentcompatMode;

#endif


#endif /*__document_h__*/

